-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return driver object only when valid #93
Conversation
Without this, a driver that failed the sanity check could be returned. This leads to attempting to use it when checking URLs, which led to avoidable failures. Fixes urlstechie#92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm 👍
@mabraham if this fixes the error for you, please bump the version in the changelog and up the version in version.py. I'd also prefer the design pattern of having the driver set back to None if the error is triggered instead of having |
@vsoch Can you explain why? I personally don't have a preference but I find this implementation cleaner. |
It's simple - as a user developer reading the code I only need to track one instead of two variables. |
All done! |
Thank you @mabraham! |
Without this, a driver that failed the sanity check could be returned. This leads to attempting to use it when checking URLs, which led to avoidable failures.
Fixes #92